package com.woniu.mapper;

import com.github.pagehelper.Page;
import com.woniu.entity.dto.ShopSearchDTO;
import com.woniu.pojo.Shop;

import java.util.List;

public interface ShopMapper {
    Page<Shop> listSearch(ShopSearchDTO shopSearchDTO);

    Integer save(Shop shop);

    Integer deleteByIds(Long[] ids);

    Integer updateById(Shop shop);

    Shop getById(Long id);

    Shop checkNameExist(String name);

    List<Shop> listAll();
}
